﻿<%@ Page Title="" Language="C#" MasterPageFile="/Administrator/Site1.Master" AutoEventWireup="true"
    CodeBehind="ManagerSlideShow.aspx.cs" Inherits="TIS.Administrator.ManagerSlideShow" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="workplace">
         <div>
         <b>Chọn ngôn ngữ: </b><asp:DropDownList runat="server" ID="ddlLanguage"></asp:DropDownList> 
         <asp:Button ID="btnShowLanguage" class="btn" runat="server" Height="30px" 
                Text="Hiển thị theo ngôn ngữ" onclick="btnShowLanguage_Click"  />
         </div>
          <div class="dr">
            <span></span>
        </div>
        <div class="row-fluid">
            <div class="span12">
                <div class="head">
                    <h1>
                        Danh sách slide show</h1>
                    <div class="clear">
                    </div>
                </div>
                <div class="block-fluid table-sorting">
                    <div class="row-form">
                        <asp:GridView ID="gridViewSlideShow" runat="server"  
                            AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" 
                            GridLines="None" Width="100%">
                            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                            <Columns>
                                <asp:ImageField DataImageUrlField="SlideShowName" HeaderText="Hình Ảnh">
                                    <ControlStyle Height="50px" Width="50px" />
                                    <ItemStyle Height="50px" Width="50px" HorizontalAlign="Center" />
                                </asp:ImageField>
                                <asp:BoundField DataField="SlideShowURL" HeaderText="URL " >
                                <ItemStyle Width="250px" HorizontalAlign="Center" />
                                </asp:BoundField>
                                <asp:BoundField DataField="SlideShowPosition" HeaderText="Vị trí" >
                                 <ItemStyle Width="50px" HorizontalAlign="Center" />
                                   </asp:BoundField>
                                <asp:TemplateField HeaderText="Tình trạng">
                                    <ItemTemplate>
                                        <asp:Label ID="Label1" runat="server" Text='<%# Convert.ToInt32(Eval("SlideShowStatus")) == 1 ? "Hoạt động" : "Không hoạt động"%>'></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" Width="150px" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Hành động">
                                    <ItemTemplate>
                                     <asp:LinkButton ID="lbtnEdit" runat="server" 
                                            CommandArgument='<%# Eval("SlideShowId") %>' oncommand="lbtnEdit_Command">Sửa</asp:LinkButton>
                                       
                                        &nbsp;|
                                        <asp:LinkButton ID="lbtnRemove" runat="server" 
                                            CommandArgument='<%# Eval("SlideShowId") %>' OnClientClick="return confirm('Bạn có thực sự muốn xóa không ?')" oncommand="lbtnRemove_Command">Xóa</asp:LinkButton>
                                    </ItemTemplate>
                                    <ItemStyle Width="100px" HorizontalAlign="Center" />
                                </asp:TemplateField>
                            </Columns>
                            <EditRowStyle BackColor="#999999" />
                            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                            <SortedAscendingCellStyle BackColor="#E9E7E2" />
                            <SortedAscendingHeaderStyle BackColor="#506C8C" />
                            <SortedDescendingCellStyle BackColor="#FFFDF8" />
                            <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                        </asp:GridView>
                    </div>
                    <div class="clear">
                    </div>
                </div>
            </div>
        </div>
         <div class="dr">
            <span></span>
        </div>
        <div class="row-fluid">
            <div class="span12">
                <div class="head">
                    
                    <h1>
                        Thông tin slide show</h1>
                    <div class="clear">
                    </div>
                </div>
               <div class="block-fluid">                        
                        <div class="row-form">
                            <div class="span3">Chọn hình ảnh</div>
                            <div class="span9">
                                <asp:FileUpload ID="fileUpload" runat="server"  placeholder="Nhập tên danh mục..." /> </div>
                            <div class="clear"></div>
                        </div> 
                        
                          <div class="row-form">
                            <div class="span3">Vị trí hiển thị:</div>
                            <div class="span9"><asp:TextBox ID="txtPosition" runat="server" Text="10" placeholder="Vị trí của danh mục..."></asp:TextBox></div>
                            <div class="clear"></div>
                        </div>   
                                                  
                         <div class="row-form">
                            <div class="span3">URL:</div>
                            <div class="span9"><asp:TextBox ID="txtURL" runat="server" placeholder="Nhập url hoặc để chương trình tự động..."></asp:TextBox></div>
                            <div class="clear"></div>
                        </div>   
                             
                        <div class="row-form">
                            <div class="span3">Tình trạng:</div>
                            <div class="span9">
                                <label class="checkbox inline">
                                    <asp:RadioButton ID="rdoStatusDisplay" runat="server" Checked="true" GroupName="rdoStatusGroupCenter" /> Hiển thị
                                </label>
                                <label class="checkbox inline">
                                   <asp:RadioButton ID="rdoStatusHidden" runat="server"  GroupName="rdoStatusGroupCenter" /> Không hiển thị
                                </label>
                            </div>
                            <div class="clear"></div>
                        </div> 
                       
                        <div class="row-form">
                            <div class="span3"></div>
                            <div class="span9">
                                <asp:Button ID="btnSubmit" class="btn" runat="server" Height="30px" 
                                    Text="Lưu lại" onclick="btnSubmit_Click" /> 
                                    <asp:Button ID="btnBlack" class="btn" runat="server" Height="30px" Text="Quay lại"  PostBackUrl="~/Administrator/ManagerSlideShow.aspx" />
                                     </div>
                            <div class="clear"></div>
                        </div>   

                    </div>
            </div>
        </div>
    </div>
</asp:Content>
